<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>MultiIframeLoadMonitor (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>

  <script type="text/javascript" src="//www.google.com/jsapi"></script>
  <script type="text/javascript">
     google.load("visualization", "1", {packages:["orgchart"]});
     var _loadingVisualizations = true;
  </script>

  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
        <span class="fn">net.MultiIframeLoadMonitor</span>
        <span>Extends</span>
        <span class="fn-name">
          
        </span>
</div>

<div class="g-section g-tpl-75-25">
  <div class="g-unit g-first" id="description">
    Provides a wrapper around IframeLoadMonitor, to allow the caller to wait for
multiple iframes to load.


  </div>


        <div class="g-unit" id="useful-links">
          <div class="title">Useful links</div>
          <ol>
            <li><a href="local_closure_goog_net_multiiframeloadmonitor.js.source.html"><span class='source-code-link'>Source Code</span></a></li>
            <li><a href="http://code.google.com/p/closure-library/source/browse/local/closure/goog/net/multiiframeloadmonitor.js">Git</a></li>
          </ol>
        </div>
</div>






<h2 class="g-first">Inheritance</h2>
<div class='gviz-org-chart-container goog-inline-block'>
<table class='gviz-org-chart' style='display:none'>
  <tr><td>goog.net.MultiIframeLoadMonitor</td><td></td></tr>
</table>
</div>
<div class='gviz-org-chart-container goog-inline-block'>
<table class='gviz-org-chart' style='display:none'>
</table>
</div>




  <h2>Constructor</h2>
      <div class="fn-constructor">
    goog.net.MultiIframeLoadMonitor(<span><span class="arg">iframes</span>,&nbsp;<span class="arg">callback</span>,&nbsp;<span class="arg">opt_hasContent</span></span>)
  </div>

   <h3>Parameters</h3>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">iframes</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type">HTMLIFrameElement</span>&gt;
        <div class="entryOverview">Array of iframe elements to
    wait until they are loaded.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">callback</span>
        : <span class="type">function():void</span>
        <div class="entryOverview">The callback to invoke once the frames have
    loaded.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_hasContent</span>
        : <span class="type">boolean=</span>
        <div class="entryOverview">true if the monitor should wait until the
    iframes have content (body.firstChild != null).</div>
     </td>
   </tr>
  </table>


<h2>Instance Methods</h2>


  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>







<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_net_MultiIframeLoadMonitor.html">
              goog.net.MultiIframeLoadMonitor
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.net.MultiIframeLoadMonitor.prototype.callback_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">callback_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Callback which is invoked when all of the iframes are loaded.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_multiiframeloadmonitor.js.source.html#line53">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.net.MultiIframeLoadMonitor.prototype.handleEvent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">handleEvent<span class="args">(<span class="arg">e</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Handles a pending iframe load monitor load event.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">e</span>
        : <span class="type"><a href="class_goog_events_Event.html">goog.events.Event</a></span>
        <div class="entryOverview">The goog.net.IframeLoadMonitor.LOAD_EVENT event.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_multiiframeloadmonitor.js.source.html#line81">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.net.MultiIframeLoadMonitor.prototype.stopMonitoring"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">stopMonitoring<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Stops monitoring the iframes, cleaning up any associated resources. In
general, the object cleans up its own resources before invoking the
callback, so this API should only be used if the caller wants to stop the
monitoring before the iframes are loaded (for example, if the caller is
implementing a timeout).

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_multiiframeloadmonitor.js.source.html#line112">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>




<h2>Instance Properties</h2>







<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_net_MultiIframeLoadMonitor.html">
              goog.net.MultiIframeLoadMonitor
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.net.MultiIframeLoadMonitor.prototype.pendingIframeLoadMonitors_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">pendingIframeLoadMonitors_</span>
        : 
     </div>


     <div class="entryOverview">
       Array of IframeLoadMonitors we use to track the loaded status of any
currently unloaded iframes.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_multiiframeloadmonitor.js.source.html#line46">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>










<div class="section">
  <table class="horiz-rule">


  </table>
</div>









<div class="section">
  <table class="horiz-rule">


  </table>
</div>









<div class="section">
  <table class="horiz-rule">


  </table>
</div>
      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Package net</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">Package Reference</h2>
            <div id="sideTypeIndex" rootPath="" current="net.MultiIframeLoadMonitor"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
